package edu.jd.movieplatform.admin.a_feedback.impl;

import edu.jd.movieplatform.admin.a_feedback.a_FeedbackDto;
import edu.jd.movieplatform.admin.a_feedback.a_FeedbackService;
import edu.jd.movieplatform.admin.a_feedback.dao.a_FeedbackDao;
import edu.jd.movieplatform.common.Utils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Map;

@Service
@Transactional
public class a_FeedbackServiceImpl implements a_FeedbackService {
    @Resource
    private a_FeedbackDao a_feedbackDao;

    @Override
    public Map<String, Object> geta_FeedbackList(a_FeedbackDto dto) {
        return Utils.getPage(dto,()->a_feedbackDao.finda_FeedbackList(dto));
    }

    @Override
    public void updFeedback(a_FeedbackDto dto) {
        a_feedbackDao.updateFeedback(dto);
    }

}
